package com.lh.web.dao.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author FH
 * @ClassName: CategoryMapper
 * @Description: (类作用)
 * @date: 2020-06-28 9:39
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> queryCategoryList(Map<String, Object> param);

    Category getCategoryName(String sortName);

    int addCategory(Category category);

    int updateCategory(Category category);

    List<Map<String,Object>> querySortParent(Long id);

    int queryShopCount(Long id);

    int deleteCategory(Long id);

}
